import React from 'react'
import Tabs from '#tp/tabs/tabs'
// ===================================================================== Declare
const { $fn } = window
// ===================================================================== 
class Index extends React.Component{
	state = { 
		
	}
	
	render(){
		const { tabs, index } = this.props.top
		return (
			<>
				<Tabs
					data={ tabs }
					defaultActiveKey = { index }
					onTabs = { ({ status }, index) => {
						this.props.tabChange(status)
						$fn.local('covidTabs', index)
					}}
				/>
			</>
		)
	}
}

export default Index